import { createPinia } from "pinia";
import { createUnistorage } from "../uni_modules/pinia-plugin-unistorage";

export const pinia = createPinia();
// createUnistorage 返回一个 pinia 插件，需要执行后再 use
pinia.use(createUnistorage());

export default pinia;
